package fun.ticsmyc.designPattern;

/**
 * 静态内部类
 * @author Ticsmyc
 * @package fun.ticsmyc.designPattern
 * @date 2020-08-13 20:04
 */
public class Singleton3 {

    private Singleton3(){
    }

    private static class Holder{
        public static final Singleton3 INSTANCE = new Singleton3();
    }

    public static Singleton3 getInstance(){
        return Holder.INSTANCE;
    }

}
